package com.hoperun.service;

import java.util.List;

import com.hoperun.bean.AppUpdateinfo;
import com.hoperun.framework.ibatis.page.BootGrid;
import com.hoperun.framework.ibatis.page.BootGridPage;
import com.hoperun.framework.query.Criteria;

public interface IAppUpdateinfoSV
{
    /**
	 * 根据主键查询
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public AppUpdateinfo queryById(long id)throws Exception;
	
	/**
	 * 添加
	 * @param appUpdateinfo
	 * @return
	 * @throws Exception
	 */
	public AppUpdateinfo save(AppUpdateinfo appUpdateinfo)throws Exception;
	
	/**
	 * 更新
	 * @param appUpdateinfo
	 * @throws Exception
	 */
	public void update(AppUpdateinfo appUpdateinfo)throws Exception;
	
	/**
	 * 物理删除
	 * @param id
	 * @throws Exception
	 */
	public void delete(long id)throws Exception;

	/**
	 * 新增或删除
	 * @param appUpdateinfo
	 * @throws Exception
	 */
	public void saveOrUpdate(AppUpdateinfo appUpdateinfo)throws Exception;

	/**
	 * 新增或删除
	 * @param list
	 * @throws Exception
	 */
	public void saveOrUpdate(List<AppUpdateinfo> list)throws Exception;

	/**
	 * 按条件查询记录
	 * @param criteria
	 * @throws Exception
	 */
	public List<AppUpdateinfo> queryByCondition(Criteria criteria)throws Exception;
	
	/**
	 * 按条件查询记录条数
	 * @param criteria
	 * @throws Exception
	 */
	public int queryCountByCondition(Criteria criteria)throws Exception;
	
	/**
	 *  分页查询
	 * @param criteria
	 * @return
	 * @throws Exception
	 */
	public BootGridPage<AppUpdateinfo> queryPage(Criteria criteria,
			BootGrid<AppUpdateinfo> grid) throws Exception ;

}
